/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.paris5.master2.guitarmaster.bean;

import java.util.Collection;

/**
 *
 * @author mourad
 */
public class EcomCountry implements EcomBean {
   
    //attributes
    private String code;
    private String label;
    private String devise;
    private Collection<EcomStore> storeCollection;
    private Collection<EcomUser> userCollection;
    
    /*
     * accessors
     */

    public String getCode() {
        return code;
    }

    public String getDevise() {
        return devise;
    }

    public String getLabel() {
        return label;
    }

    public Collection<EcomStore> getStoreCollection() {
        return storeCollection;
    }

    public Collection<EcomUser> getUserCollection() {
        return userCollection;
    }
    
    /*
     * Setters
     */

    public void setCode(String code) {
        this.code = code;
    }

    public void setDevise(String devise) {
        this.devise = devise;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public void setStoreCollection(Collection<EcomStore> storeCollection) {
        this.storeCollection = storeCollection;
    }

    public void setUserCollection(Collection<EcomUser> userCollection) {
        this.userCollection = userCollection;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final EcomCountry other = (EcomCountry) obj;
        if ((this.code == null) ? (other.code != null) : !this.code.equals(other.code)) {
            return false;
        }
        if ((this.label == null) ? (other.label != null) : !this.label.equals(other.label)) {
            return false;
        }
        if ((this.devise == null) ? (other.devise != null) : !this.devise.equals(other.devise)) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "Country{" + "code=" + code + ", label=" + label + ", devise=" + devise + ", storeCollection=" + storeCollection + ", userCollection=" + userCollection + '}';
    }  
}
